home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / GWMALLOC.ZIP;1 / GWMALLOC.TAR / gw_malloc / error_str.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-08  |  3.2 KB  |  93 lines

  1. /*
  2.  * array of error messages for the malloc internal errors.
  3.  *
  4.  * Copyright 1992 by Gray Watson and the Antaire Corporation
  5.  *
  6.  * This file is part of the malloc-debug package.
  7.  *
  8.  * This library is free software; you can redistribute it and/or
  9.  * modify it under the terms of the GNU Library General Public
  10.  * License as published by the Free Software Foundation; either
  11.  * version 2 of the License, or (at your option) any later version.
  12.  *
  13.  * This library is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.  * Library General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU Library General Public
  19.  * License along with this library (see COPYING-LIB); if not, write to the
  20.  * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  *
  22.  * The author of the program may be contacted at gray.watson@antaire.com
  23.  *
  24.  * $Id: error_str.h,v 1.5 1993/04/05 22:30:10 gray Exp $
  25.  */
  26.  
  27. #ifndef __ERROR_STR_H__
  28. #define __ERROR_STR_H__
  29.  
  30. /* string error codes which apply to error codes in error_val.h */
  31. LOCAL    char    *malloc_errlist[] = {
  32.   "no error",
  33.   
  34.   /* administrative errors */
  35.   "initialization sanity checks on setup values failed",
  36.   "malloc domain has been entered twice",
  37.   "errno value passed in by user is out-of-bounds",
  38.   
  39.   /* pointer verification errors */
  40.   "pointer is null",
  41.   "pointer is not pointing into the heap data space",
  42.   "cannot locate pointer in the heap",
  43.   "found pointer the user was looking for",
  44.   "possibly bad .c filename pointer",
  45.   "possibly bad .c file line-number",
  46.   "failed UNDER picket-fence magic-number checking",
  47.   "failed OVER picket-fence magic-number checking",
  48.   "pointer will exceed allocation",
  49.   
  50.   /* allocation errors */
  51.   "invalid allocation size",
  52.   "largest maximum allocation size exceeded",
  53.   "user allocated space contiguous block error",
  54.   "could allocate more memory, heap extension failed",
  55.   "bad size in information structure",
  56.   
  57.   /* free errors */
  58.   "pointer is not on a block boundary",
  59.   "tried to free pointer which is already freed",
  60.   "pointer does not point to start of user-allocated space",
  61.   "pointer does not point to user-allocated space",
  62.   "inconsistency with free linked-list",
  63.   "free space contiguous block error",
  64.   "bad basic-block memory pointer in the free-list",
  65.   "space that should be free has been overwritten",
  66.   
  67.   /* dblock errors */
  68.   "bad divided-block chunk size",
  69.   "bad divided-block pointer",
  70.   "bad basic-block memory pointer in dblock struct",
  71.   "bad divided-block admin pointer",
  72.   "bad divided-block admin magic numbers",
  73.   "bad divided-block chunk admin information structure",
  74.   
  75.   /* administrative errors */
  76.   "admin structure pointer out of bounds",
  77.   "bad admin structure list",
  78.   "bad magic number in admin structure",
  79.   "bad basic-block count value in admin structure",
  80.   "bad basic-block administration pointer",
  81.   "bad basic-block administration counter",
  82.   
  83.   /* heap check verification */
  84.   "bad basic-block allocation order",
  85.   "basic-block has bad flag value",
  86.   
  87.   "PROBLEM - BAD ERRNO VALUE",
  88.   "PROBLEM - BAD ERRNO VALUE",
  89.   "PROBLEM - BAD ERRNO VALUE",
  90. };
  91.  
  92. #endif /* ! __ERROR_STR_H__ */
  93.